﻿<%@ page language="C#" masterpagefile="~/AdminMasterPage.master" autoeventwireup="true" inherits="UserManage, App_Web_zodh6prk" title="用户管理" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<ul class="box"><li id="submenu-active"><a href="#">用户管理</a>
          <!-- Active -->
          <ul>
            <li>
            <asp:LinkButton ID="lbtnUserList" runat="server" OnClick="lbtnUserList_Click" CausesValidation="False">用户列表</asp:LinkButton></li><li><asp:LinkButton ID="lbtnNewUser" runat="server" OnClick="lbtnNewUser_Click" CausesValidation="False">新增用户</asp:LinkButton></li>
               <li><asp:LinkButton ID="lbtnUserApprove" runat="server" OnClick="lbtnUserApprove_Click">审核用户</asp:LinkButton></li>
            <li><asp:LinkButton ID="lbtnUserPermit" runat="server" CausesValidation="False" OnClick="lbtnUserPermit_Click">权限设置</asp:LinkButton></li>
              </ul>
        </li>
        
        </ul>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <asp:Panel ID="pnlUserList" runat="server">
        Panel1<br />
        <asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton>
        <asp:LinkButton ID="LinkButton2" runat="server">LinkButton</asp:LinkButton>
        <asp:LinkButton ID="LinkButton3" runat="server">LinkButton</asp:LinkButton>
        <asp:LinkButton ID="LinkButton4" runat="server">LinkButton</asp:LinkButton>
        <asp:LinkButton ID="LinkButton5" runat="server">LinkButton</asp:LinkButton>
        <asp:LinkButton ID="LinkButton6" runat="server">LinkButton</asp:LinkButton><br />
        <asp:GridView ID="gvUserList" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            OnPageIndexChanging="gvUserList_PageIndexChanging" OnRowDataBound="gvUserList_RowDataBound"
            OnRowDeleting="gvUserList_RowDeleting" PageSize="15" Width="700px">
            <Columns>
                <asp:TemplateField HeaderText="用户ID">
                    <ItemTemplate>
                        <%#   (Container.DataItemIndex+1).ToString()%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="UserID" HeaderText="ID" Visible="False" />
                <asp:BoundField DataField="UserName" HeaderText="用户名" />
                <asp:BoundField DataField="DateCreated" HeaderText="创建日期" />
                <asp:BoundField DataField="Email" HeaderText="Email" />
                <asp:CheckBoxField DataField="IsAdmin" HeaderText="管理员" />
                <asp:CheckBoxField DataField="IsOnline" HeaderText="在线" />
                <asp:CheckBoxField DataField="IsApproved" HeaderText="已审核" />
                <asp:CheckBoxField DataField="IsAllow" HeaderText="允许" />
                <asp:TemplateField HeaderText="查看" ShowHeader="False">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbtnUserInfo" runat="server" CausesValidation="False" CommandName="Select"
                            OnClick="lbtnUserInfo_Click" Text="详细"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="密码">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbtnResetPwd" runat="server" OnCommand="lbtnResetPwd_Command">重置密码</asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="60px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="删除" ShowHeader="False">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbtnUserDel" runat="server" CausesValidation="False" CommandName="Delete"
                            Text="删除"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:LinkButton ID="LinkButton7" runat="server">LinkButton</asp:LinkButton><br />
        <asp:Label ID="lblUserMsg" runat="server"></asp:Label></asp:Panel>
    <asp:Panel ID="pnlAddUser" runat="server" Visible="False">
        Panel2</asp:Panel>
    <asp:Panel ID="pnlEditUser" runat="server" Visible="False">
        Panel3</asp:Panel>
    <asp:Panel ID="pnlApproveUser" runat="server" Visible="False">
        Panel4</asp:Panel>
    <asp:Panel ID="pnlUserManage" runat="server" Visible="False">
        用户管理功能<br />
        可以添加用户、删除用户、修改用户信息、修改用户密码、重置用户密码</asp:Panel>
    <asp:Panel ID="pnlPermit" runat="server" Visible="False">
        用户权限设置</asp:Panel>
</asp:Content>

